package com.jxc.action.hygl;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import com.jxc.action.BaseAction;
import com.jxc.model.vo.VPointUsedRecord;
import com.jxc.service.PointUsedRecordServiceI;
import com.opensymphony.xwork2.ModelDriven;

@Namespace("/hygl")
@Action(value = "pointUsedRecordAction", results = {})
public class PointUsedRecordAction extends BaseAction implements
		ModelDriven<VPointUsedRecord> {
	@Autowired
	private PointUsedRecordServiceI pointUsedRecordService;

	private VPointUsedRecord model = new VPointUsedRecord();

	@Override
	public VPointUsedRecord getModel() {
		return model;
	}
	
	public void noAuth_datagrid() {
		writeJson(pointUsedRecordService.datagrid(model));
	}

}
